Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for RocksDB (dramatic memory improvement with multiple databases) #117

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cjroth
Copy link

@cjroth cjroth commented Mar 6, 2019

Calling getKeys loads all keys into memory and filters through them. This means that if there is other data in AsyncStorage that is unrelated to the current database, such as other databases, the memory load increases linearly with the number of keys.

If using RocksDB via https://github.com/tradle/react-native-async-storage-rocks, there is method to only load keys with a given prefix. I've found that this solves the memory issue entirely.

@mqtik
Copy link

mqtik commented Jan 3, 2020

No android version for this.

@mqtik
Copy link

mqtik commented Jan 6, 2020

I tried this pull request.
It's throws a lot of conflicts with replication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants